package com;

import com.qf.dao.impl.WeatherDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 2019/11/27
 * Administrator
 * cxfClient1127
 * 面向对象面向君  不负代码不负卿
 */
public class Test {
    public static void main(String[] args) {
        //1.加载spring的配置文件
        ApplicationContext app=
        new ClassPathXmlApplicationContext("springclient.xml");
        WeatherDaoImpl dao=(WeatherDaoImpl) app.getBean("aa");
        String s = dao.getwh("北京");
        System.out.println(s);
    }
}
